﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Telerik.WinControls.UI;

namespace LIM.forms
{
    public class LIMUserControl : UserControl
    {
        protected List<object> listControls = new List<object>();
        public LIMUserControl()
        {            
        }

        protected override void OnLoad(EventArgs e)
        {
            
            foreach (var item in listControls)
            {
                if (item is RadMenuItem)
                {
                    RadMenuItem radItem = (RadMenuItem)item;
                    
                    if (radItem.Name == "radMenuItem_Refresh")
                        radItem.Enabled=false;
                    else if (radItem.Name == "radMenuItem_LuuLai")
                        radItem.Visibility = Telerik.WinControls.ElementVisibility.Hidden;

                }
                else if (item is RadButton)
                {
                    RadButton radItem = (RadButton)item;
                }
            }

            base.OnLoad(e);
        }

        
    }    
}
